package charstream;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class Demo7 {
    public static void main(String[] args) throws IOException {
        //字符缓冲流的特有功能  输出流 跨平台换行符
        BufferedWriter bw = new BufferedWriter(new FileWriter("Day13\\a.txt"));
        bw.write("程序员996");
        bw.newLine();
        bw.write("abcd");
        bw.newLine();
        bw.close();
    }
}
